<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:th="http://www.thymeleaf.org">
<head>
<title>首页</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet"
	href="https://apps.bdimg.com/libs/jquerymobile/1.4.5/jquery.mobile-1.4.5.min.css" />
<script type="text/javascript" src="http://libs.baidu.com/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&amp;ak=ESUICaohNGpKKOAx3d2SOzDxuZ2WUMlX&amp;services=&amp;t=20180323171755"></script>
<script src="https://apps.bdimg.com/libs/jquery/1.10.2/jquery.min.js"></script>
<script
	src="https://apps.bdimg.com/libs/jquerymobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
<script th:src="@{/js/ajaxfileupload/ajaxfileupload.js}"></script>
</head>
<body width="95%">
	<div data-role="page" id="pageone">

		<div data-role="header" data-position="fixed" data-tap-toggle="true"
			data-theme="a">
			<a id="goHome" href="/dcms/ui/bussinessmain?device=mobile"
				data-ajax='false'
				class="ui-btn ui-corner-all ui-shadow ui-icon-home ui-btn-icon-left">主页</a>
			<h1>信息核查</h1>
			<a href='javascript:location.reload();'
				class="ui-btn ui-btn-a ui-icon-refresh ui-btn-icon-notext ui-corner-all ui-shadow ui-btn-right">refeash</a>
		</div>

		<input type="hidden" id="identify" th:value="${bussinessId}" />

		<div data-role="main" class="ui-content" id="mainContent">
			<form method="post" id="saveOrUpdateInspectForm">
				<!-- 从服务器传递过来的参数 -->
				<div th:if="${id != ''}">
					<input id="checkId" name="id" type="hidden" th:value="${id}" />
				</div>
				<input id="lng" name="lng" type="hidden"/>
				<input id="lat" name="lat" type="hidden"/>
				<input id="inspectionIdList" name="inspectionIdList" type="hidden"
					th:value="${inspectionIdList}" /> <select id="myselect"
					name="myselect" data-native-menu="false" multiple="multiple">
					<option value="choose" data-placeholder="true">选择遗留问题</option>
				</select>
				<div data-role="collapsible" data-collapsed="false">
					<h3>遗留问题</h3>
					<ul data-role="listview" id="checkeprob">
					</ul>
				</div>
				<div style="display: none">
					<fieldset data-role="fieldcontain">

						<select name="bussinessId" id="bussinessId"
							data-native-menu="false">
							<option th:value="${bussinessId}">这里有没有都关系</option>
						</select>
					</fieldset>
				</div>
				<div>
					<table data-role="table" data-mode="columntoggle:none"
						class="ui-body-c ui-responsive ui-shadow"
						data-column-btn-theme="e" data-column-popup-theme="c" id="myTable">
						<thead class="pearlHeading">
							<tr>
								<th width="30%"></th>
								<th height="50%"></th>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td>其他存在问题</td>
								<td><textarea data-clear-btn="true" type="text"
										name="checkCondition" id="checkCondition"
										placeholder="请填写存在的问题"></textarea></td>
							</tr>
							<tr>
								<td>整改情况</td>
								<td><textarea data-clear-btn="true" type="text"
										name="rectifyCondition" id="rectifyCondition"
										placeholder="请填写整改情况"></textarea></td>
							</tr>
							<tr>
								<td>备注</td>
								<td><textarea data-clear-btn="true" type="text"
										name="remark" id="remark" placeholder="请填写整改情况"></textarea></td>
							</tr>
							<tr>
								<td>现场违规拍照</td>
								<td><input type="file" id="file_upload" name="file"
									style="display: none;" /> <a href="javascript: ;"
									id="fileclick"> <img src="/dcms/img/upload.png"
										id="avatart" style="width: 30%" /></a></td>
							</tr>
							<tr>
								<td><img alt="当前位置" src="/dcms/img/yourlocation.png"></img></td>
								<td id="locationDes"></td>
							</tr>
						</tbody>
					</table>
					<input id="saveOrUpdateBtn" type="submit" data-inline="false"
						value="提交" class="display:block" />
				</div>
			</form>
		</div>
		<div data-role="panel" data-position="right" id="sPanel"
			data-display="reveal"
			style='background: url(/dcms/img/tousuimg.jpg) 50% 0 no-repeat; background-size: cover'>
			<h2>考核记录</h2>
			<table data-role="table" data-mode="columntoggle:none"
				class="ui-body-c ui-responsive ui-shadow" data-column-btn-theme="e"
				data-column-popup-theme="c" id="myTable">
				<thead class="pearlHeading">
					<tr>
						<th width="20%"><input id="currentId" name="currentId"
							type="hidden" /></th>
						<th width="80%">记录详情</th>
					</tr>
				</thead>
				<tbody>
					<tr>
						<td>是否整改</td>
						<td>
							<div data-role="fieldcontain">
								<fieldset data-role="controlgroup" data-type="horizontal">
									<label for="repair">已</label> <input type="radio" name="gender"
										id="repair" value="repair" /> <label for="norepair">未</label>
									<input type="radio" name="gender" id="norepair"
										value="norepair" />
								</fieldset>
							</div>
						</td>
					</tr>
					<tr>
						<td>备注</td>
						<td><textarea data-clear-btn="true" type="text"
								name="remarkD" id="remarkD" placeholder="请填写备注"></textarea></td>
					</tr>
					<tr>
						<td>现场违规拍照</td>
						<td><a href="javascript: ;" id="detailfileclick"> <img
								src="/dcms/img/upload.png" id="avatartD" style="width: 50%" /></a></td>
					</tr>
				</tbody>
			</table>
			<div data-role="content">
				<a href="#pageone" id="saveBtnT" data-ajax='false'
					data-transition="slide" data-direction="reverse" data-role="button"
					data-theme="e" data-icon="check" data-inline="true">保存</a> <a
					href="#pageone" data-role="button" data-rel="close" data-theme="b"
					data-icon="action" data-inline="true">关闭</a>
			</div>
			<a href="#pageone" data-rel="close" data-inline="true"
				class="ui-btn ui-btn-a ui-icon-delete ui-btn-icon-notext ui-corner-all ui-shadow ui-btn-right">关闭面板</a>
		</div>

		<div data-role="popup" id="popupView" data-position-to="window"
			class="ui-content" data-theme="a" data-overlay-theme="a"
			data-dismissible="false">
			<div data-role="content">
				<img th:src="@{/img/loading.gif}" />
			</div>
		</div>
		<div data-role="footer" data-position="fixed" data-tap-toggle="true"
			data-theme="a"></div>
	</div>
	<script th:src="@{/mobile/bussinessCheck/saveOrUpdateOnPhone.js}"></script>
	<script th:inline="javascript">
		window.rootPath= /*[[${#httpServletRequest.getContextPath()}]]*/
	</script>
</body>
</html>